package com.my.coolq.api.request;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * 设置群组专属头衔
 * @author ch
 *
 */
public class SetGroupSpecialTitleRequest implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5472261979608458824L;

	/**
	 * 群qq号码
	 */
	private Long group_id;
	
	/**
	 * 用户的qq号码
	 */
	private Long user_id;
	
	/**
	 * 专属头衔，不填或空字符串表示删除专属头衔
	 */
	private String special_title;
	
	/**
	 * 专属头衔有效期，单位秒，-1 表示永久，不过此项似乎没有效果，可能是只有某些特殊的时间长度有效，有待测试
	 */
	private Integer duration;

	public SetGroupSpecialTitleRequest() {
		super();
	}

	public SetGroupSpecialTitleRequest(Long group_id, Long user_id) {
		super();
		this.group_id = group_id;
		this.user_id = user_id;
	}

	public SetGroupSpecialTitleRequest(Long group_id, Long user_id, String special_title, Integer duration) {
		super();
		this.group_id = group_id;
		this.user_id = user_id;
		this.special_title = special_title;
		this.duration = duration;
	}

	public Long getGroup_id() {
		return group_id;
	}

	public void setGroup_id(Long group_id) {
		this.group_id = group_id;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public String getSpecial_title() {
		return special_title;
	}

	public void setSpecial_title(String special_title) {
		this.special_title = special_title;
	}

	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}
	
	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}
	
}
